package o;

import android.content.Context;
import android.graphics.Bitmap;
import com.bumptech.glide.Glide;

public class eqy {
    protected static ro<Bitmap> ˏ(Context context, String str, boolean z) {
        ro<Bitmap> roVar;
        try {
            roVar = (ro) Glide.ˏ(context).ॱ().ˎ(str).ˊ(tf.ˋ);
            if (z) {
                try {
                    roVar = roVar.ॱ((zp) new zp().ॱॱ());
                } catch (IllegalArgumentException e) {
                    Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
                    return roVar;
                }
            }
        } catch (IllegalArgumentException e2) {
            roVar = null;
            Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
            return roVar;
        }
        return roVar;
    }

    protected static ro<xt> ˊ(Context context, String str, boolean z) {
        ro<xt> roVar;
        try {
            roVar = (ro) Glide.ˏ(context).ʼ().ˎ(str).ˊ(tf.ˋ);
            if (z) {
                try {
                    roVar = roVar.ॱ((zp) new zp().ॱॱ());
                } catch (IllegalArgumentException e) {
                    Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
                    return roVar;
                }
            }
        } catch (IllegalArgumentException e2) {
            roVar = null;
            Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
            return roVar;
        }
        return roVar;
    }

    protected static ro<Bitmap> ॱ(Context context, String str) {
        return ˏ(context, str, false);
    }

    protected static ro<Bitmap> ˎ(int i, int i2, Context context, String str, boolean z) {
        ro<Bitmap> roVar;
        try {
            roVar = (ro) Glide.ˏ(context).ॱ().ˎ(str).ˊ(tf.ˋ);
            try {
                ze zpVar = new zp();
                zpVar.ˊ(i, i2);
                if (z) {
                    zpVar.ॱॱ();
                }
                roVar = roVar.ॱ(zpVar);
            } catch (IllegalArgumentException e) {
                Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
                return roVar;
            }
        } catch (IllegalArgumentException e2) {
            roVar = null;
            Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
            return roVar;
        }
        return roVar;
    }

    protected static ro ॱ(Context context, String str, boolean z) {
        ro roVar;
        try {
            roVar = (ro) Glide.ˏ(context).ˏ(str).ˊ(tf.ˋ);
            if (z) {
                try {
                    roVar = roVar.ॱ((zp) new zp().ॱॱ());
                } catch (IllegalArgumentException e) {
                    Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
                    return roVar;
                }
            }
        } catch (IllegalArgumentException e2) {
            roVar = null;
            Logger.ˏ("SecureRequestBuilders", "getBitmapBuilder Glide IllegalArgumentException");
            return roVar;
        }
        return roVar;
    }
}
